package objects;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Monkey on 2017/4/17.
 * 插入用宣教记录
 */

public class XJ_UPDATE implements Parcelable {
    private String zyh;//住院号
    private String brbq;//病人病区
    private String xjgh;//宣教工号
    private String ysbs;//样式标识
    private String brxj;//病人宣教
    private String jsxj;//家属宣教
    private String xmbs_json;//项目标识_json
    private String zxzd;

    public XJ_UPDATE(String zyh, String brbq, String xjgh, String ysbs, String brxj, String jsxj, String xmbs_json, String zxzd) {
        this.zyh = zyh;
        this.brbq = brbq;
        this.xjgh = xjgh;
        this.ysbs = ysbs;
        this.brxj = brxj;
        this.jsxj = jsxj;
        this.xmbs_json = xmbs_json;
        this.zxzd = zxzd;
    }

    protected XJ_UPDATE(Parcel in) {
        zyh = in.readString();
        brbq = in.readString();
        xjgh = in.readString();
        ysbs = in.readString();
        brxj = in.readString();
        jsxj = in.readString();
        xmbs_json = in.readString();
    }


    public static final Creator<XJ_UPDATE> CREATOR = new Creator<XJ_UPDATE>() {
        @Override
        public XJ_UPDATE createFromParcel(Parcel in) {
            return new XJ_UPDATE(in);
        }

        @Override
        public XJ_UPDATE[] newArray(int size) {
            return new XJ_UPDATE[size];
        }
    };

    public String getZyh() {
        return zyh;
    }

    public void setZyh(String zyh) {
        this.zyh = zyh;
    }

    public String getBrbq() {
        return brbq;
    }

    public void setBrbq(String brbq) {
        this.brbq = brbq;
    }

    public String getXjgh() {
        return xjgh;
    }

    public void setXjgh(String xjgh) {
        this.xjgh = xjgh;
    }

    public String getYsbs() {
        return ysbs;
    }

    public void setYsbs(String ysbs) {
        this.ysbs = ysbs;
    }

    public String getBrxj() {
        return brxj;
    }

    public void setBrxj(String brxj) {
        this.brxj = brxj;
    }

    public String getJsxj() {
        return jsxj;
    }

    public void setJsxj(String jsxj) {
        this.jsxj = jsxj;
    }

    public String getXmbs_json() {
        return xmbs_json;
    }

    public void setXmbs_json(String xmbs_json) {
        this.xmbs_json = xmbs_json;
    }

    public String getZxzd() {
        return zxzd;
    }

    public void setZxzd(String zxzd) {
        this.zxzd = zxzd;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(zyh);
        dest.writeString(brbq);
        dest.writeString(xjgh);
        dest.writeString(ysbs);
        dest.writeString(brxj);
        dest.writeString(jsxj);
        dest.writeString(xmbs_json);
        dest.writeString(zxzd);
    }
}
